import { http } from './http'
import { PageQueryParams, PageResponse } from '@/config/page'

/**
 * 获取用户指定目录下文档列表
 */
export function getRecentDocs (params: PageQueryParams) {
  return http().get<PageResponse<any>>('/api/document/doc-recents/query', { params })
}

export function removeRecents (ids: number[]) {
  return http().post('/api/document/doc-recents/remove', { ids })
}

export function clearRecents () {
  return http().post('/api/document/doc-recents/clear')
}
